package com.mindether.llyblog.dao;

import com.mindether.llyblog.pojo.Article;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface ArticleMapper {

    public Article getArticleById(@Param("id")String id);

    public boolean add( Article article);

    public boolean increaseArticleComment( @Param("id")String  id);
    public boolean increaseArticleVisit( @Param("id")String  id);
    public boolean update( Article article);

    public void disableArticle(@Param("id") String id);

    public List<Article> getArticleListByTag(@Param("tag")String tag);

    public List<Article>  getTopCommentArticleList();

    boolean delete(@Param("id")String id);

    Article getRecommendArticle();

    List<Article>  getAllArticle();

    List<Article>  getAllArticleByPage();

    List<Article>  getArticleByTagAndPage(@Param("tag")String tag);
}
